package com.brok1n.app.android.selfstudyartifact.data;

/**
 * Created by brok1n on 2016/10/15.
 * 数据中心
 *  单利对象，所有数据都在数据中心存储。
 */

public class DataCenter {

    private static DataCenter mInstance;
    private DataCenter(){};
    /**
     * 获取单实例对象
     * */
    public static DataCenter getInstance()
    {
        if ( null == mInstance )
        {
            synchronized ( DataCenter.class )
            {
                if ( null == mInstance )
                    mInstance = new DataCenter();
            }
        }
        return mInstance;
    }




}
